From: Georges Basile Stavracas Neto Date: Tue, 9 Jun 2020 21:18:21 +0000 (-0300) Subject: background: Add option to not use background content size X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~533 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cfc1f1fd9c834f194ddd708b6c0d2c098e1f0dac;p=gnome-shell.git background: Add option to not use background content size Will be used by next commit to draw workspaces at a different size of the background itself. Part-of: --- diff --git a/js/ui/background.js b/js/ui/background.js index 08e803621..df2d98112 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -662,6 +662,7 @@ var BackgroundManager = class BackgroundManager { vignette: false, controlPosition: true, settingsSchema: BACKGROUND_SCHEMA, + useContentSize: true, }); let cache = getBackgroundCache(); @@ -673,6 +674,7 @@ var BackgroundManager = class BackgroundManager { this._vignette = params.vignette; this._monitorIndex = params.monitorIndex; this._controlPosition = params.controlPosition; + this._useContentSize = params.useContentSize; this.backgroundActor = this._createBackgroundActor(); this._newBackgroundActor = null; @@ -747,6 +749,11 @@ var BackgroundManager = class BackgroundManager { let backgroundActor = new Meta.BackgroundActor({ meta_display: global.display, monitor: this._monitorIndex, + request_mode: this._useContentSize + ? Clutter.RequestMode.CONTENT_SIZE + : Clutter.RequestMode.HEIGHT_FOR_WIDTH, + x_expand: !this._useContentSize, + y_expand: !this._useContentSize, }); backgroundActor.content.set({ background,